package com.ucode.crm.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ucode.crm.mapper.FollowupRecordMapper;
import com.ucode.crm.mode.FollowupRecord;
import com.ucode.crm.service.FollowupRecordService;
import com.ucode.tool.util.IdentifyUtils;

@Service
public class FollowupRecordServiceImpl implements FollowupRecordService {

    @Autowired
    private FollowupRecordMapper followupRecordMapper;
    
    @Override
    public int insert(FollowupRecord followupRecord) {
        Date now = new Date();
        followupRecord.setId(IdentifyUtils.getDefaultSnowflakeId());
        followupRecord.setCreatedTime(now);
        followupRecord.setUpdatedTime(now);
        
        followupRecordMapper.insert(followupRecord);
        
        return 0;
    }

    @Override
    public List<FollowupRecord> queryPageByCustomer(Long customerId, int pagesize, int page) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public List<FollowupRecord> queryPageByActivity(Long activityId, Integer activityType, int pagesize, int page) {
        // TODO Auto-generated method stub
        return null;
    }

}
